<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends Action {
    public function index(){
    	$this->display();
   }
   public function insert(){
		$User = D("Liuyan");
		if($User->create()){	
			$User->add();
		}else{
			$this->error($User->getError());
			}
	}
}